//
//  XDModel.h
//  XDFS
//
//  Created by Yury Soldak on 30/09/2008.
//

#import <Cocoa/Cocoa.h>


@interface XDModel : NSObject {

	NSXMLDocument* doc;
	NSDictionary* href2name;
	NSDictionary* href2tags;
	NSDictionary* tag2hrefs;
	
}

- (id) initWithURLString: (NSString*) url;

- (NSSet*) hrefsForTag: (NSString*) tag;
- (NSSet*) hrefsForTags: (NSSet*) tags;

- (NSSet*) allTags;
- (NSSet*) tagsForHref: (NSString*) href;

- (NSString*) nameForHref: (NSString*) href;
- (NSString*) hrefForName: (NSString*) name;

@end
